//
//  LSYParseModel.h
//  LSYReader
//
//  Created by sam on 2018/3/22.
//  Copyright © 2018年 okwei. All rights reserved.
//
#import "HTMLKit.h"
#import "LSYModel.h"
@interface LSYParseModel : LSYModel
@property (nonatomic,strong) NSString *bookAuthor;
@property (nonatomic,strong) NSString *bookCategory;
@property (nonatomic,strong) NSString *bookDesc;
@property (nonatomic,strong) NSString *bookIcon;
@property (nonatomic,strong) NSString *bookLastChapterName;
@property (nonatomic,strong) NSString *bookName;
@property (nonatomic,strong) NSString *bookUpdateTime;
@property (nonatomic,strong) NSString *bookUrl;
@property (nonatomic,strong) NSString *books;
@property (nonatomic,strong) NSString *chapterName;
@property (nonatomic,strong) NSString *chapterUrl;
@property (nonatomic,strong) NSString *chapters;
@property (nonatomic) BOOL checked;
@property (nonatomic,strong) NSString *content;
@property (nonatomic,strong) NSString *contentReplace;
@property (nonatomic,strong) NSString *contentRemove;
@property (nonatomic) BOOL enabled;
@property (nonatomic,strong) NSString *encoding;
@property (nonatomic,strong) NSString *host;
@property (nonatomic,strong) NSString *indexUrl;
@property (nonatomic,strong) NSString *name;
@property (nonatomic) NSInteger order;
@property (nonatomic,strong) NSString *searchEncoding;
@property (nonatomic,strong) NSString *searchMore;
@property (nonatomic,strong) NSString *searchMoreHref;
@property (nonatomic,strong) NSString *searchUrl;
@property (nonatomic) NSInteger type;
@property (nonatomic,strong) NSURL *targetUrl;
@property (nonatomic,assign) BOOL searchToDetail;
@property (nonatomic,strong) NSString *detailBookIcon;
@property (nonatomic,strong) NSString *detailChaptersUrl;

- (instancetype)initWithDiction:(NSDictionary *)dict;
- (NSArray *)contentReplaces;
- (NSArray *)contentRemoves;
- (NSString *)getElText:(HTMLNode *)el rule:(NSString *)rule relativeUrl:(NSURL *)url;
- (NSString *)getElText:(HTMLNode *)el rule:(NSString *)rule relativeUrl:(NSURL *)url isHtml:(BOOL)isHtml;
@end
